package com.itheima.stock;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.itheima.stock.mapper.SysUserMapper;
import com.itheima.stock.pojo.entity.SysUser;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.SetOperations;
import org.springframework.security.crypto.password.PasswordEncoder;

import java.util.List;

@SpringBootTest
public class Tpage {
    @Autowired
    private SysUserMapper sysUserMapper;
@Test
    public void tPWD(){

    PageHelper .startPage(2,5);

    List<SysUser> allUsers = sysUserMapper.findAllUsers();
    PageInfo<SysUser> pageInfo = new PageInfo<>(allUsers);



    pageInfo.getList().forEach(System.out::println);
}


}
